<?php

/**
 * Represents a <form> tag.
 */
fily_XMLConverter::registerNamespace('form', fily_Form);
class fily_Form extends fily_ControlContainer {
    /**
     *
     */
    public function __construct() {
        parent::__construct('form');
        $this->setMethod('post');
    }
    /**
     * returns the action
     * @return string
     */
    public function getAction() {
        return $this->attributes->get('action');
    }

    /**
     * returns the method
     * @return string
     */
    public function getMethod() {
        return $this->attributes->get('method');
    }

    /**
     * sets the action
     * @param string $value
     */
    public function setAction($value) {
        $this->attributes->set('action', $value);
    }

    /**
     * sets the method
     * @param string $value
     */
    public function setMethod($value) {
        $this->attributes->set('method', $value);
    }
}
?>
